<div data-dux="table-bind">
    <div class="dux-page-header uk-clearfix">
        <div class="page-title">
            <form class="dux-form uk-form  uk-form-inline" method="get" action="{url()}">
                <div class="uk-form-group">
                    <input type="text" name="keyword" class="uk-form-field" value="{$pageMaps.keyword}"
                           placeholder="搜索">
                </div>
                <div class="uk-form-group">
                    <select class="uk-form-field" name="type">
                        <option value="4">全部</option>
                        <option value="1" <!--if{$pageMaps.type == 1}-->selected <!--{/if}-->>待配货</option>
                        <option value="2" <!--if{$pageMaps.type == 2}-->selected <!--{/if}-->>配货中</option>
                        <option value="3" <!--if{$pageMaps.type == 3}-->selected <!--{/if}-->>配货完成</option>
                        <option value="0"  <!--if{$pageMaps.type == '0'}-->selected <!--{/if}-->>配货失败</option>
                    </select>
                </div>
                <div class="uk-form-group">
                    <button type="submit" class="uk-button uk-button-primary"><i class="fa fa-search"></i></button>
                </div>
            </form>
        </div>
    </div>
    <div class="dux-page-table">
        <table class="uk-table  uk-table-responsive  uk-table-striped uk-table-hover uk-table-middle dux-table" data-table>
            <thead>
            <tr>
                <th>订单号</th>
                <th>收货人</th>
                <th>收货地址</th>
                <th>联系电话</th>
                <th class="uk-text-center">配货状态</th>
                <th class="uk-text-center" width="150">管理</th>
            </tr>
            </thead>
            <tbody>
            <!--loop{$list as $vo}-->
            <tr>
                <td>
                    {$vo.order_no}
                </td>
                <td>
                    {$vo.receive_name}
                </td>
                <td>
                    {$vo.receive_province} {$vo.receive_city} {$vo.receive_region} {$vo.receive_address}
                </td>
                <td>
                    {$vo.receive_tel}
                </td>
                <td class="uk-text-center">
                    <!--if{$vo.parcel_status == 0}-->
                    <span>配货失败</span>
                    <!--{/if}-->
                    <!--if{$vo.parcel_status == 1}-->
                    <span class="uk-text-danger">待配货</span>
                    <!--{/if}-->
                    <!--if{$vo.parcel_status == 2}-->
                    <span class="uk-text-warning">配货中</span>
                    <!--{/if}-->
                    <!--if{$vo.parcel_status == 3}-->
                    <span class="uk-text-success">配货完成</span>
                    <!--{/if}-->
                </td>
                <td class="uk-text-center">
                    <a class="uk-button uk-button-warning  uk-button-small" title="打印" href="{url('printInfo', ['id'=>$vo['parcel_id']])}"><i class="fa fa-print"></i></a>

                    <!--if{$vo.parcel_status <> 0 && $vo.parcel_status <> 3}-->
                    <a class="uk-button uk-button-primary uk-button-small" href="javascript:;" title="配货状态" data-dux="dialog-open" data-title="发货状态" data-height="325px" data-url="{url('status', ['id' => $vo['parcel_id']])}"><i class="fa fa-circle-o"></i></a>
                    <!--{/if}-->
                    <a class="uk-button uk-button-danger uk-button-small" href="javascript:;"
                       data-url="{url('del')}" data-id="{$vo.parcel_id}" title="删除" data-del><i
                            class=" fa fa-trash"></i></a>
                </td>
            </tr>
            <!--{/loop}-->
            </tbody>
        </table>
    </div>
    <div class="dux-page-foot uk-clearfix">
        {$page}
    </div>
</div>